package com.moji.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 新闻中心表
 * </p>
 *
 * @author ccl
 * @since 2024-07-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="MjNews对象", description="新闻中心表")
public class MjNews extends Model<MjNews> {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "编码")
    private String code;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "图片url")
    private String picture;

    @ApiModelProperty(value = "新闻简介")
    private String info;

    @ApiModelProperty(value = "新闻内容")
    private String content;

    @ApiModelProperty(value = "创建时间")
    private Date releaseTime;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "是否推荐0 - 不推荐 1 - 推荐")
    private String prRecommend;

    @ApiModelProperty(value = "seo标题")
    private String seoTitle;

    @ApiModelProperty(value = "seo描述")
    private String seoDesc;

    @ApiModelProperty(value = "seo关键字")
    private String seoKeys;

    @ApiModelProperty(value = "更新人id")
    private String updateId;

    @ApiModelProperty(value = "创建人id")
    private String createId;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "备用字段1")
    private Integer spareInt1;

    @ApiModelProperty(value = "备用字段2")
    private Integer spareInt2;

    @ApiModelProperty(value = "备用字段1")
    private String spareString1;

    @ApiModelProperty(value = "备用字段2")
    private String spareString2;

    @TableField(exist = false)
    @ApiModelProperty(value = "上一篇新闻id")
    private Long upNewsId;

    @TableField(exist = false)
    @ApiModelProperty(value = "上一篇新闻标题")
    private String upNewsName;

    @TableField(exist = false)
    @ApiModelProperty(value = "下一篇新闻id")
    private Long nextNewsId;

    @TableField(exist = false)
    @ApiModelProperty(value = "下一篇新闻标题")
    private String nextNewsName;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
